<%@page import="java.util.ArrayList"%>
<%@page import="com.jlrdb.model.DigitalRadioBroadcast"%>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/css/styledform.css">
<script type="text/javascript" src="/script/radio.js"></script>
<title>Update Radio Broadcast</title>
</head>
<body>
	<h2>Update Radio Data</h2>
	<%
		DigitalRadioBroadcast radioBroadcast = (DigitalRadioBroadcast) request.getAttribute("digitalRadioBroadcast");
	%>
	<form name="BroadcastForm" onsubmit="return updateDigitalValidation()" action="/RadioBroadcastServlet" target="_self">
		<input type="hidden" name="action" value="updateRadioBroadcastDigital">
		<input type="hidden" name="country" value="<%=radioBroadcast.getCountry()%>">
		<input type="hidden" name="geographic_region" value="<%=radioBroadcast.getGeographic_Region()%>">
		<input type="hidden" name="broadcastId"
			value="<%=radioBroadcast.getBroadcast_Id()%>">
		<div id="error">
			<font>* marked fields are mandatory.</font>&nbsp;&nbsp;&nbsp;&nbsp;<font id="id1"></font>
		</div>
		<table style="float: left; position: relative; margin-right: auto;">

			<tr>
				<th>Geographic Region</th>
				<td><%=radioBroadcast.getGeographic_Region()%></td>
			</tr>
			<tr>
				<th>Country:</th>
				<td><%=radioBroadcast.getCountry()%></td>
			</tr>
						<tr>
				<th><font color="red">*</font>Analog Radio:</th>
				<td><select name="analog_radio">
						<option value="AM" <%if (radioBroadcast.getAnalog_radio().equals("AM")){out.println("selected");}%>>AM</option>
						<option value="FM" <%if (radioBroadcast.getAnalog_radio().equals("FM")){out.println("selected");}%>>FM</option>
				</select></td>
			</tr>
			<tr>
				<th><font color="red">*</font>Digitization Status:</th>
				<td><select name="digitization_status">
						<option value="Not Known" <%if (radioBroadcast.getDigitization_Status().equals("Not Known")){out.println("selected");}%>>Not Known</option>
						<option value="Deployed/Ongoing" <%if (radioBroadcast.getDigitization_Status().equals("Deployed/Ongoin")){out.println("selected");}%>>Deployed/Ongoing</option>
						<option value="Shown Interest" <%if (radioBroadcast.getDigitization_Status().equals("Shown Interest")){out.println("selected");}%>>Shown Interest</option>
						<option value="Suspended" <%if (radioBroadcast.getDigitization_Status().equals("Suspended")){out.println("selected");}%>>Suspended</option>
						<option value="Adopted"  <%if (radioBroadcast.getDigitization_Status().equals("Adopted")){out.println("selected");}%>>Adopted</option>
						<option value="Undecided" <%if (radioBroadcast.getDigitization_Status().equals("Undecided")){out.println("selected");}%>>Undecided</option>
				</select></td>
			</tr>
			<tr>
				<th><font color="red">*</font>Digital Radio Family:</th>
				<td><select name="digital_radio_family">
						<option value="Not Known" <%if (radioBroadcast.getDigital_Radio_Family().equals("Not Known")){out.println("selected");}%>>Not Known</option>
						<option value="IBOC" <%if (radioBroadcast.getDigital_Radio_Family().equals("IBOC")){out.println("selected");}%>>IBOC</option>
						<option value="Eureka147" <%if (radioBroadcast.getDigital_Radio_Family().equals("Eureka147")){out.println("selected");}%>>Eureka147</option>
						<option value="DRM" <%if (radioBroadcast.getDigital_Radio_Family().equals("DRM")){out.println("selected");}%>>DRM</option>
						<option value="ISDB-Tsb" <%if (radioBroadcast.getDigital_Radio_Family().equals("ISDB-Tsb")){out.println("selected");}%>>ISDB-Tsb</option>
						<option value="CDR" <%if (radioBroadcast.getDigital_Radio_Family().equals("CDR")){out.println("selected");}%>>CDR</option>
				</select></td>
			</tr>
			<tr>
				<th><font color="red">*</font>Standard:</th>
				<td><select name="standard">
						<option value="Not Known" <%if (radioBroadcast.getStandard().equals("Not Known")){out.println("selected");}%>>Not Known</option>
						<option value="DAB" <%if (radioBroadcast.getStandard().equals("DAB")){out.println("selected");}%>>DAB</option>
						<option value="DAB+"  <%if (radioBroadcast.getStandard().equals("DAB+")){out.println("selected");}%>>DAB+</option>
						<option value="DRM30" <%if (radioBroadcast.getStandard().equals("DRM30")){out.println("selected");}%>>DRM30</option>
						<option value="DRM+" <%if (radioBroadcast.getStandard().equals("DRM+")){out.println("selected");}%>>DRM+</option>
						<option value="DMB-T" <%if (radioBroadcast.getStandard().equals("DMB-T")){out.println("selected");}%>>DMB-T</option>
						<option value="DMB-A" <%if (radioBroadcast.getStandard().equals("DMB-A")){out.println("selected");}%>>DMB-A</option>
						<option value="HD Radio" <%if (radioBroadcast.getStandard().equals("HD Radio")){out.println("selected");}%>>HD Radio</option>
						<option value="DVB-H" <%if (radioBroadcast.getStandard().equals("DVB-H")){out.println("selected");}%>>DVB-H</option>
						<option value="ISDB-TSB" <%if (radioBroadcast.getStandard().equals("ISDB-TSB")){out.println("selected");}%>>ISDB-TSB</option>
						<option value="Undecided" <%if (radioBroadcast.getStandard().equals("Undecided")){out.println("selected");}%>>Undecided</option>
				</select></td>
			</tr>
			<tr>
				<th><font color="red">*</font>Transmission Status:</th>
				<td><select name="transmission_status">
						<option value="Not Known" <%if (radioBroadcast.getTransmission_Status().equals("Not Known")){out.println("selected");}%>>Not Known</option>
						<option value="Regular" <%if (radioBroadcast.getTransmission_Status().equals("Regular")){out.println("selected");}%>>Regular</option>
						<option value="Trial/Test" <%if (radioBroadcast.getTransmission_Status().equals("Trial/Test")){out.println("selected");}%>>Trial/Test</option>
						<option value="Suspended" <%if (radioBroadcast.getTransmission_Status().equals("Suspended")){out.println("selected");}%>>Suspended</option>
				</select></td>
			</tr>
			<tr>
				<th>Coverage:</th>
				<td><input name="coverage" type="text" size="26" value="<%=radioBroadcast.getCoverage()%>"></td>
			</tr>
			<tr>
				<th>Start Date:</th>
				<td><input name="start_date" type="text" size="26" value="<%=radioBroadcast.getStart_Date()%>"></td>
			</tr>
			<tr>
				<th>Stop date:</th>
				<td><input name="stop_date" type="text" size="26" value="<%=radioBroadcast.getStop_date()%>"></td>
			</tr>
			<tr>
				<th>Notes:</th>
				<td><textarea rows="4" cols="21" name="notes"><%=radioBroadcast.getNotes()%></textarea></td>
			</tr>
			<tr>
				<th>Frequency Spectrum:</th>
				<td><input name="frequency_spectrum" type="text" size="26" value="<%=radioBroadcast.getFrequency_Spectrum()%>"></td>
			</tr>
			<tr>
				<th>Major Players:</th>
				<td><textarea rows="4" cols="21" name="major_players"><%=radioBroadcast.getMajor_Players()%></textarea></td>
			</tr>
			<tr>
				<th>Digital Radio Overall coverage:</th>
				<td><input name="digital_radio_overall_coverage" type="text" size="26" value="<%=radioBroadcast.getDigital_Radio_Overall_coverage()%>"></td>
			</tr>
			<tr>
				<th>MultiPlex:</th>
				<td><textarea rows="4" cols="21" name="multiplex"><%=radioBroadcast.getMultiPlex()%></textarea></td>
			</tr>
		</table>
		<table style="position: relative;">
			<tr>
				<th>ASO Start Date:</th>
				<td><input name="aso_start_date" type="text" size="26" value="<%=radioBroadcast.getASO_Start_Date()%>"></td>
			</tr>
			<tr>
				<th>ASO End Date:</th>
				<td><input name="aso_end_date" type="text" size="26" value="<%=radioBroadcast.getASO_End_Date()%>"></td>
			</tr>
			<tr>
				<th>Regulatory authority:</th>
				<td><textarea rows="4" cols="21" name="regulatory_authority"><%=radioBroadcast.getRegulatory_authority()%></textarea></td>
			</tr>
			<tr>
				<th>Source:</th>
				<td><textarea rows="4" cols="21" name="source"><%=radioBroadcast.getSource()%></textarea></td>
			</tr>
		</table>
		<div style="clear: both;"></div>
	<input type="submit" name="Update" value="update">&nbsp;&nbsp;&nbsp;<input type="button" name="Cancel" value="Cancel" onclick="self.close()">
	
	</form>
</body>
</html>